﻿

using Common.Algorithm.Core.LocalTest;


//using Common.Algorithm.Display;
using System.Reflection;

// See https://aka.ms/new-console-template for more information
Console.WriteLine("Hello!");
string assemblyPath = Assembly.GetExecutingAssembly().Location;
string assemblyDir = Path.GetDirectoryName(assemblyPath) + "\\";

//TEST
////----------------------------------------------------------
//DijkstraTest.Run(GraphGenerator.GenDirectalWeightGraph());

//PrimTest.Run(GraphGenerator.GenUNndirectalWeightGraph());

//KruskalTest.Run(GraphGenerator.GenUNndirectalWeightGraph());

////---------------------------------------------------------- 
//string cityFile = @$"{assemblyDir}\DATA\pr76.txt";

//AntColonyTest.Run(GraphGenerator.GenCityGraph(cityFile,70));

//AnnealTest.Run(GraphGenerator.GenCityGraph(cityFile, 70));
//AnnealTest.RunMany(GraphGenerator.GenCityGraph(cityFile, 70),10);


//GeneticTest.Run(GraphGenerator.GenCityGraph(cityFile, 70));
//GeneticTest.RunMany(GraphGenerator.GenCityGraph(cityFile, 70), 10);
////----------------------------------------------------------
//ParticleSwarmExecute.RunMany();


//QuantumGeneticExecute.RunMany(5);


//SimpleGeneticFunctionExecute.RunMany(5);


//NSGAIIExecute.Run();
//NSGAIIRealExecute.Run();
//MainWindow mainWindow = new MainWindow();
//mainWindow.Show();

//FireflyExecute.RunMany();

string cityFile = @$"R:\_CODE_\DOTNET\common.algorithm.core\Common.Algorithm.Core.Shared\_data_\pr76.txt";
QuadTreeExecute.filePath = cityFile;
QuadTreeExecute.dataNum = 30;
var qte = new QuadTreeExecute();
var rects=QuadTreeExecute.rects;


 